package com.spring.demo5;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class TextEditorConfig {
	@Bean
	public TextEditor4 textEditor(){
	return new TextEditor4( spellChecker() );
	}
	@Bean
	public SpellChecker spellChecker(){
	return new SpellChecker( );
	}
}
